package com.syl.practice.globalexception.enums;

public enum ApiEnum {
    SUCCESS(00,"成功"),
    PARAMETER_NOT_EXIST(01,"缺少必要的参数"),
    ERROR(02,"系统异常"),;

    private int code;
    private String name;

    ApiEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
